﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SmallShop.Core;

namespace SmallShop.Dal
{

    /// <summary>
    /// 数据访问接口
    /// </summary>
    public interface IDataAccess
    {
        IQueryable<T> Query<T>() where T : BaseModel;

        void Add<T>(T model) where T : BaseModel;

        void Update<T>(T model) where T : BaseModel;

        void Delete<T>(T model) where T : BaseModel;

        void SaveChange();

    }
}
